package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.bussiness.teachbook.model.TeachingBookPlanDetail;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 课程体系
 * </p>
 *
 * @author Pitt
 * @since 2020-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_course_system")
public class CourseSystem extends Model<TeachingBookPlanDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID , 这里故意演示注解可以无
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 学科id
     */
    private String subjectId;

    /**
     * 学科名称
     */
    private String subjectName;

    /**
     * 关联体系名称
     */
    private String relationName;

    /**
     * 关联体系值
     */
    private String relationValue;

    /**
     * 关联关系类型【年级：GRADE；学期：SEMESTER；教材版本：TEACH_BOOK_VERSION；班级类型：COURSE_TYPE】
     */
    private String relationType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
